/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * The Class UserScrap.
 * @author Uy Phu
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserScrap {
	
	/** The scrapId. */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long scrapId;
	
	/** The senderId. */
	@Persistent
	private Long senderId;
	
	/** The receiverId. */
	@Persistent
	private Long receiverId;
	
	/** The scrapcontent. */
	@Persistent
	private String scrapcontent;
	
	/** The send date. */
	@Persistent
	private Date sendDate;
	
	/** The seen. */
	@Persistent
	private Boolean seen;

	/**
	 * Instantiates a new user scrap.
	 */
	public UserScrap() {
		
	}

	/**
	 * Instantiates a new user scrap.
	 *
	 * @param scrapId the scrapId
	 * @param senderId the senderId
	 * @param receiverId the receiverId
	 * @param scrapcontent the scrapcontent
	 * @param sendDate the send date
	 * @param seen the seen 
	 */
	public UserScrap(Long scrapId, Long senderId, Long receiverId, String scrapcontent, Date sendDate, Boolean seen) {
		this.scrapId = scrapId;
		this.senderId = senderId;
		this.receiverId = receiverId;
		this.scrapcontent = scrapcontent;
		this.sendDate = sendDate;
		this.seen = seen;
	}

	/**
	 * Gets the scrapId.
	 *
	 * @return the scrapId
	 */
	public Long getScrapId() {
		return this.scrapId;
	}

	/**
	 * Sets the scrapId.
	 *
	 * @param scrapId the new scrapId
	 */
	public void setScrapId(Long scrapId) {
		this.scrapId = scrapId;
	}

	/**
	 * Gets the senderId.
	 *
	 * @return the senderId
	 */
	public Long getSenderId() {
		return this.senderId;
	}

	/**
	 * Sets the senderId.
	 *
	 * @param senderId the new senderId
	 */
	public void setSenderId(Long senderId) {
		this.senderId = senderId;
	}

	/**
	 * Gets the receiverId.
	 *
	 * @return the receiverId
	 */
	public Long getReceiverId() {
		return this.receiverId;
	}

	/**
	 * Sets the receiverId.
	 *
	 * @param receiverId the new receiverId
	 */
	public void setReceiverId(Long receiverId) {
		this.receiverId = receiverId;
	}

	/**
	 * Gets the scrapcontent.
	 *
	 * @return the scrapcontent
	 */
	public String getScrapcontent() {
		return this.scrapcontent;
	}

	/**
	 * Sets the scrapcontent.
	 *
	 * @param scrapcontent the new scrapcontent
	 */
	public void setScrapcontent(String scrapcontent) {
		this.scrapcontent = scrapcontent;
	}

	/**
	 * Gets the send date.
	 *
	 * @return the send date
	 */
	public Date getSendDate() {
		return this.sendDate;
	}

	/**
	 * Sets the send date.
	 *
	 * @param sendDate the new send date
	 */
	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	/**
	 * Gets the seen .
	 *
	 * @return the seen 
	 */
	public Boolean getSeen() {
		return this.seen;
	}

	/**
	 * Sets the seen .
	 *
	 * @param seen the new seen 
	 */
	public void setSeen(Boolean seen) {
		this.seen = seen;
	}
	
}
